package com.bw.lib_common.base

/**
 * @author ytx
 * @date 2025-10-17 09:31
 * @description
 */
abstract class BaseMVIFragment:BaseFragment(),IView {
    /**
     * 实例化viewmodel
     */
    abstract fun generateViewModel()

    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }

    /**
     * 页面活跃的时候处理状态
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }
}